package requests

type RegisterRequest struct {
	Username string `json:"username" v:"bail|required|min-length:5|max-length:20 #|用户名必填|用户名最少5个字符|用户名最多20个字符"`
	Password string `json:"password" v:"bail|required|password|min-length:5|max-length:20 #|密码必填|密码不符合规定|密码最少5个字符|密码最多20个字符"`
	Email    string `json:"email" v:"bail|required|email #|邮箱必填|邮箱格式不正确"`
}

type LoginRequest struct {
	Account  string `json:"account" v:"bail|required|min-length:5|max-length:30 #|用户名或邮箱必填|用户名或邮箱最少5个字符|用户名或邮箱最多30个字符"`
	Password string `json:"password" v:"bail|required|password|min-length:5|max-length:20 #|密码必填|密码不符合规定|密码最少5个字符|密码最多20个字符"`
}

type DeleteRequest struct {
	ID uint `json:"id" v:"bail|required|integer #|用户id必填|用户id必须是正整数"`
}
